package com.atcper

/**
 * @author : ranzlupup
 * @date : 2023/2/21 20:23
 */
object Scala03_equal {
  def main(args: Array[String]): Unit = {
    val name1: String = "atcper"
    val name2: String = "atcper"
    val name3 = new String("atcper")
    println(name1 == name2)
    println(name2 == name3)
    println(name1.eq(name2))

    println(name1 eq name3)
    println(name2 eq name3)
  }

}
